
package com.eyedog.video.videodetail;

import com.eyedog.library.mvp.BasePresenter;
import com.eyedog.video.http.ICallback;
import com.wallj.videolibrary.player.WaterMarkEntity;

public class WaterMarkPresenter
        extends BasePresenter<constract.IWaterMarkView, constract.IWaterMarkModel>
        implements constract.IWaterMarkPresenter {

    public WaterMarkPresenter(constract.IWaterMarkView iWaterMarkView,
            constract.IWaterMarkModel iWaterMarkModel) {
        super(iWaterMarkView, iWaterMarkModel);
    }

    @Override
    public void displayWaterMark() {
        model.loadWaterMark(new ICallback<WaterMarkEntity>() {
            @Override
            public void onLoadSuccess(WaterMarkEntity waterMarkEntity) {
                view.showWaterMark(waterMarkEntity);
            }

            @Override
            public void onLoadFailed(String err) {
            }
        });
    }
}
